﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using fideeraSoft.DAOimpl;
using fideeraSoft.DAO;
using fideeraSoft.Entities;

namespace fideeraSoft.BO
{
    public class RemitoEntradaBO
    {

        RemitoEntradaDAO remitoEntradaDao;

        public RemitoEntradaBO()
        {
            remitoEntradaDao = new RemitoEntradaDAOSQLimpl();
        }

        public int buscarNuevoUltimoIdRemitoEntradaEnBD()
        {

            return remitoEntradaDao.buscarNuevoUltimoIdRemitoEntradaEnBD();
        }

        public void altaRemitoEntrada(RemitoEntrada remitoEntrada)
        {
            this.remitoEntradaDao.altaRemitoEntrada(remitoEntrada);
        }

        public void eliminarRemitoEntradaPorID(string id)
        {
            this.remitoEntradaDao.eliminarRemitoEntradaPorID(id);
        }

        public RemitoEntrada buscarRemitoEntradaPorCod(string cod)
        {
          return  this.remitoEntradaDao.buscarRemitoEntradaPorCod(cod);
        }
        public RemitoEntrada buscarRemitoEntradaPorID(int id)
        {
            return this.remitoEntradaDao.buscarRemitoEntradaPorID(id);
        }


        public void eliminarTodosLosRemitosEntradaEnDb()
        {
            this.remitoEntradaDao.eliminarTodosLosRemitosEntradaEnDb();
        }
    }
}
